package book.service.impl;

import book.dao.role_privilegesDao;
import book.entity.role_privileges;
import book.service.RolePrivilegesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RolePrivilegesServiesImpl implements RolePrivilegesService{

    @Autowired
    role_privilegesDao role_p;

    @Override
    public void insert(role_privileges role) {
        role_p.insertEntity(role);
    }

    @Override
    public void delete(int id) {
        role_p.deleteEntity(id);
    }

    @Override
    public role_privileges getid(role_privileges id) {
        return role_p.getid(id);
    }

    @Override
    public void deleterole(int id) {
        role_p.delrole(id);
    }
}
